﻿using System;

using System.Collections.Generic;
using System.Threading.Tasks;
using YY.Admin.EventBus;
using static YY.Admin.Core.SysUserEvents;
using System.Reflection;
using YY.Admin.Core;
using Prism.Ioc;

namespace YY.Admin.Module
{
    public static class NotificationExtensions
    {
        /// <summary>
        /// 注册通知事件
        /// </summary>
        public static void AddNotificationEventBus(this IContainerRegistry containerRegistry)
        {
            // 注册EventAggregator为单例
            containerRegistry.RegisterSingleton<IEventAggregator, EventAggregator>();
        }
    }
}
